.TH std::future::operator= 3 "2024.06.10" "http://cppreference.com" "C++ Standard Libary"
.SH NAME
std::future::operator= \- std::future::operator=

.SH Synopsis
   future& operator=( future&& other ) noexcept;      \fB(1)\fP \fI(since C++11)\fP
   future& operator=( const future& other ) = delete; \fB(2)\fP \fI(since C++11)\fP

   Assigns the contents of another future object.

   1) Releases any shared state and move-assigns the contents of other to *this. After
   the assignment, other.valid() == false and this->valid() will yield the same value
   as other.valid() before the assignment.
   2) std::future is not CopyAssignable.

.SH Parameters

   other - a std::future that will transfer state to *this

.SH Return value

   *this
